package org.benjamin.tenancy.repository;

import java.util.List;

import org.benjamin.tenancy.domain.entity.Housing;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface HousingRepository extends JpaRepository<Housing, Integer>,JpaSpecificationExecutor<Housing>{
	
	List<Housing> findByBuildingId(Integer integer,Sort sort);
	
	Housing findByNumber(String number);

}
